<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>AdminLTE | factory_details</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <!-- bootstrap 3.0.2 -->
        <link href="../css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <!-- font Awesome -->
        <link href="../css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <!-- Ionicons -->
        <link href="../css/ionicons.min.css" rel="stylesheet" type="text/css" />
        <!-- Theme style -->
        <link href="../css/AdminLTE.css" rel="stylesheet" type="text/css" />
		
		<style type="text/css">
			*{
    			margin: 0;
    			padding: 0;
    		}
    		ul li{
    			list-style: none;
    			margin-top: 10px;
    		}
    		.pull{
    			margin-bottom: 10px;
    		}
    		.pull-left{
    			border-left: 6px solid #3882FF;
    			padding: 0 5px;
    		}
    		.style span{
    			display: inline-block;
    			border: 1px solid black;
    			margin-right: 5px;
    			padding: 3px 6px;
    		}
    		.style-image{
    			display: inline-block;
    			padding: 30px;
    			border: 1px solid black;
    			float: left;
    		}
    		.style-number{
    			margin-left: 10px;
    			margin-top: 20px;
    			float: left; 		
    		}
    		.custormView table tr td:nth-child(1){
    			text-align: right;
    		}
		</style>
    </head>
    <body class="skin-blue">
        <#include "../header.html"/> 
        <div class="wrapper row-offcanvas row-offcanvas-left">
            <#include "../menu.html"/>
            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">
            	<section class="content-header">
                    <h1>工厂详情
                    	<small><a href="#">返回</a></small>
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="#">工厂管理</a></li>
                        <li><a href="#">工厂详情</a></li>
                    </ol>
               </section>
                <!-- Content Header (Page header) -->
                <section class="content">
                    <div class="row">
                    	<div class="col-md-12">
                            <div class="box" style="padding: 20px;">
			                    <div class="pull">
			                    	<div class="pull-left">
				                    	工厂信息
				                    </div>
				                    <div class="pull-right" style="margin-bottom: 10px;">
			                    		<!-- <span style="margin-right: 5px;">
			                    			最近编辑：2016/10/13&nbsp;17:15
			                    		</span> -->
			                    		<button type="button" class="btn btn-default btn-sm" onclick="location.href='showModifyPage?${factoryDetail.id}'">编辑</button>&nbsp;&nbsp;&nbsp;
			                    		<button type="button" class="btn btn-default btn-sm" onclick="location.href='deleteFactory?${factoryDetail.id}'">删除</button>
				                    </div>
			                    </div>
			                    <div class="custormView">
			                    	<table class="table table-bordered" >
				                    	<tr>
				                    		<td>名称</td>
				                    		<td>${factoryDetail.name}</td>
				                    	</tr>
				                    	<tr>
				                    		<td>地址</td>
				                    		<td>${factoryAddress}</td>
				                    	</tr>
				                    	<tr>
				                    		<td>联系电话</td>
				                    		<td>
				                    			<#list factoryDetail.factoryContacts as factoryContact>
				                    				${factoryContact.contact}&nbsp;&nbsp;
				                    			</#list>
				                    		</td>
				                    	</tr>
				                    	<tr>
				                    		<td>工厂人数</td>
				                    		<td>${factoryDetail.person_amount}</td>
				                    	</tr>
				                    	<tr>
				                    		<td>梳织类型</td>
				                    		<td class="style">
				                    			<#list factoryDetail.tattingStyle as constant>
				                    			<span>${constant.name}</span>
				                    			</#list>
				                    		</td>
				                    	</tr>
				                    	<tr>
				                    		<td>针织类型</td>
				                    		<td class="style">
				                    			<#list factoryDetail.wovenStyle as constant>
				                    			<span>${constant.name}</span>
				                    			</#list>
				                    		</td>
				                    	</tr>
				                    	<tr>
				                    		<td>毛衣类型</td>
				                    		<td class="style">
				                    			<#list factoryDetail.sweaterStyle as constant>
				                    			<span>${constant.name}</span>
				                    			</#list>
				                    		</td>
				                    	</tr>
				                    	<tr>
				                    		<td>销往目的地</td>
				                    		<td>${factoryDetail.sale_target}</td>
				                    	</tr>
				                    	<tr>
				                    		<td>合作条件</td>
				                    		<td>${factoryDetail.cooperation_condition}</td>
				                    	</tr>
				                    	<tr>
				                    		<td>评估报告表</td>
				                    		<td>
				                    		<#if factoryDetail.estimate_report??>
				                    			<span>${factoryDetail.estimate_report}</span>
				                    			<a href="downloadReport?fileName=${factoryDetail.estimate_report}">下载评估报告 </a>
				                    			 <form action="uploadReport?factoryId=${factoryDetail.id}" method="post" enctype="multipart/form-data">
            										<input type="file" name="estimateReport" name="file">
           											<input type="submit" value="重新上传评估报告">
   											     </form>
				                    		<#else>
				                    			<form action="uploadReport?factoryId=${factoryDetail.id}" method="post" enctype="multipart/form-data">
            										<input type="file" name="estimateReport" name="file">
           											<input type="submit" value="重新上传评估报告">
   											     </form>
				                    		</#if>
				                    		</td>
				                    	</tr>
				                    </table>
			                    </div>
			                    <div class="pull pull-left">历史订单</div>
			                    <br />
			                    <div>
			                    	<div class="col-lg-4" style="float: none; padding-left: 0;">
			                    		<table class="table table-bordered" >
				                    		<tr>
				                    			<td>全部</td>
				                    			<td>打样（1）</td>
				                    			<td>大货（0）</td>
				                    		</tr>
				                    	</table>
			                    	</div>
				                    <table class="table table-bordered">
				                    	<tr>
				                    		<td  colspan="5">
				                    			<div class="pull">
				                    				<span class="pull-left" style="border: none;">
					                    				<span>2016/10/12</span>&nbsp;&nbsp;&nbsp;
					                    				<span>订单号：357647893276</span>
					                    			</span>
					                    			<span class="pull-right">超期3天</span>
				                    			</div>
				                    		</td>
				                    	</tr>
				                    	<tr>
				                    		<td style="border: 0; width: 40%;">
				                    			<div>小秀服（杭州小秀服科技有限公司）
				                    				<i class="iconfont">&#xe6ee;</i>
				                    				<i class="iconfont">&#xe6ef;</i>
				                    			</div>
				                    			<div>
				                    				<span>
				                    					<i class="iconfont">&#xe6f5;</i>
				                    					联系人：张小姐
				                    				</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    				<span>
				                    					<i class="iconfont">&#xe6f3;</i>
				                    					联系方式：18288888888
				                    				</span>
				                    			</div>
				                    			<div style="color: #bbb;">
				                    				客户需求：要求做工精致，不差钱
				                    			</div>
				                    		</td>
				                    		<td style="border-bottom: 0; width: 10%;">4</td>
				                    		<td style="border-bottom: 0; width: 20%;"></td>
				                    		<td style="border-bottom: 0; width: 15%;">待打样</td>
				                    		<td style="border-bottom: 0;">查看详情</td>
				                    	</tr>
				                    	<tr>
				                    		<td  style="border: 0; padding-top: 0;" colspan="5">
				                    			<table class="table table-bordered">
				                    				<tr>
				                    					<td colspan="5">
				                    						子订单号：3570877628349
				                    					</td>
				                    				</tr>
				                    				<tr>
				                    					<td style="width: 40%;">
							                    			<div class="style-content">
							                    				<span class="style-image">
								                    				<img src="" alt="款式图1"/>
								                    			</span>
								                    			<span class="style-number">
								                    				<div>设计编号：205058205820</div>
								                    				<div style="color: #bbb;">创建时间：2016/10/12&nbsp;12:30</div>
								                    			</span>
								                    			<div class="clear" style="clear: both;"></div>
							                    			</div>
							                    		</td>
							                    		<td style="width: 10%;">1</td>
							                    		<td style="width: 20%;"></td>
							                    		<td style="width: 15%;">待打样</td>
							                    		<td>
							                    			<button type="button" class="btn btn-primary">安排工厂</button>
							                    		</td>	
				                    				</tr>
				                    			</table>
				                    		</td>
				                    	</tr>
				                    	<tr>
				                    		<td  style="border: 0;" colspan="5">
				                    			<table class="table table-bordered">
				                    				<tr>
				                    					<td colspan="5">
				                    						子订单号：3570877628349
				                    					</td>
				                    				</tr>
				                    				<tr>
				                    					<td style="width: 40%;">
							                    			<div class="style-content">
							                    				<span class="style-image">
								                    				<img src="" alt="款式图1"/>
								                    			</span>
								                    			<span class="style-number">
								                    				<div>设计编号：205058205820</div>
								                    				<div style="color: #bbb;">创建时间：2016/10/12&nbsp;12:30</div>
								                    			</span>
								                    			<div class="clear" style="clear: both;"></div>
							                    			</div>
							                    		</td>
							                    		<td style="width: 10%;">1</td>
							                    		<td style="width: 20%;"></td>
							                    		<td style="width: 15%;">待打样</td>
							                    		<td>
							                    			<button type="button" class="btn btn-primary">上传尺码表</button>
							                    		</td>	
				                    				</tr>
				                    			</table>
				                    		</td>
				                    	</tr>
				                    </table>
			                    </div>
			                    <div class="box-footer clearfix">
			                    <ul class="pagination pagination-sm no-margin pull-right">
			                        <li><a href="#">&laquo;</a></li>
			                        <li><a href="#">1</a></li>
			                        <li><a href="#">2</a></li>
			                        <li><a href="#">3</a></li>
			                        <li><a href="#">&raquo;</a></li>
			                    </ul>
			                </div>
                            </div><!-- /.box -->
                       </div><!-- /.col -->
                    </div><!-- /.row -->
                </section>
                
                
                
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->


        <!-- jQuery 2.0.2 -->
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
        <!-- Bootstrap -->
        <script src="../js/bootstrap.min.js" type="text/javascript"></script>
        <!-- AdminLTE App -->
        <script src="../js/AdminLTE/app.js" type="text/javascript"></script>
        <!-- AdminLTE for demo purposes -->
    </body>
</html>
